﻿using System;
using System.Linq;
using System.Text;

namespace ZDEntity
{
    /// <summary>
    /// 
    /// </summary>
    public partial class AS_Position
    {
        public AS_Position()
        {

        }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string cPosCode { get; set; }
        public bool ShouldSerialivecPosCode() => !string.IsNullOrEmpty(cPosCode);

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string cPosName { get; set; }
        public bool ShouldSerialivecPosName() => !string.IsNullOrEmpty(cPosName);

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public short? iPosGrade { get; set; }
        public bool ShouldSerializeiPosGrade() => iPosGrade.HasValue;

        /// <summary>
        /// Desc:
        /// Default:1
        /// Nullable:False
        /// </summary>           
        public bool bPosEnd { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string cWhCode { get; set; }
        public bool ShouldSerialivecWhCode() => !string.IsNullOrEmpty(cWhCode);

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public double? iMaxCubage { get; set; }
        public bool ShouldSerializeiMaxCubage() => iMaxCubage.HasValue;

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public double? iMaxWeight { get; set; }
        public bool ShouldSerializeiMaxWeight() => iMaxWeight.HasValue;

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string cMemo { get; set; }
        public bool ShouldSerialivecMemo() => !string.IsNullOrEmpty(cMemo);

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string cBarCode { get; set; }
        public bool ShouldSerialivecBarCode() => !string.IsNullOrEmpty(cBarCode);

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public byte[] pubufts { get; set; }
        public bool ShouldSerializepubufts() => pubufts != null && pubufts.Length > 0;
    }
}